package com.gscitysfy.cus.drain.modules.command.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 预警对应四个等级的应急队伍
 * </p>
 *
 * @author Administrator
 * @since 2022-11-16 15:28:24
 */
@Getter
@Setter
@TableName("drain_command_dispatch_scheme_team")
public class DrainCommandDispatchSchemeTeam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long cmKid;

    /**
     * 预警等级 1.Ⅰ级,2.Ⅱ级,3.Ⅲ级,4.Ⅳ级
     */
    private String level;

    /**
     * 应急队伍的id
     */
    private Long mnTeamId;

    @TableField(value = "cm_creator",fill = FieldFill.INSERT)
    private String cmCreator;
    @TableField(value = "cm_modifier",fill = FieldFill.UPDATE)
    private String cmModifier;

    private String cmOrgflag;

    private String cmRegflag;

    private Long cmTenantid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_addtime",fill = FieldFill.INSERT)
    private Date cmAddtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_uptime", fill = FieldFill.UPDATE)
    private Date cmUptime;

    private Long cmVersion;
    private Boolean cmUsable;

    /**
     * 预案id
     */
    private Long planId;

    /**
     * 调度方案id
     */
    private Long schemeId;
    /**
     * 队长
     */
    @TableField(exist = false)
    private String managePerson;

    /**
     * 联系电话
     */
    @TableField(exist = false)
    private String phone;

    /**
     * 所在位置
     */
    @TableField(exist = false)
    private String address;

    /**
     * 经度
     */
    @TableField(exist = false)
    private BigDecimal lgtd;

    /**
     * 纬度
     */
    @TableField(exist = false)
    private BigDecimal lttd;

    /**
     * 队伍人数
     */
    @TableField(exist = false)
    private String personCount;


    /**
     * 队伍名称
     */
    @TableField(exist = false)
    private String teamName;

    @TableField(exist = false)
    private Boolean assignedFlag;
}
